<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
<script src="https://yun.cq-p.com.cn/qrshow/jquery-3.6.0.min.js"></script>
<script>
	
    var reg = new RegExp("(^|\\?|&)" + 'ticket' + "=([^&]*)(\\s|&|$)", "i");
    reg.test(window.location.href)
    var ticket = unescape(RegExp.$2.replace(/\+/g, " "))
	var baseUrl = "http://183.230.119.102:8383/admin/common/Kf/getpersoninfo/ticket/"+ticket;

    (function (w, d, n, a, j) {
        w[n] = w[n] || function () {
            return (w[n].a = w[n].a || []).push(arguments)
        };
        j = d.createElement('script');
        j.async = true;
        j.src = 'https://qiyukf.com/script/6a47a0f88c855ecf8486ba1c0737abde.js?hiddden=1';
        d.body.appendChild(j);
    })(window, document, 'ysf');
	ysf('onready', function() {
        // todo
        console.log('sdk ready');
    });
	function t(){
		location.href = ysf('url');
	}
	$.get(baseUrl, function(data){
        console.log(data)
		ysf('config', {
			uid: data.openid,     
			name: data.username,          
			success: function(){     // 成功回调
				setTimeout("t()", 500 )
			}
		});
	});
	//
</script>
</html>
